/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.anny.collect.entity;

import com.jeeplus.modules.sys.entity.User;
import javax.validation.constraints.NotNull;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 收藏管理Entity
 * @author clf
 * @version 2018-10-18
 */
public class AnnyCollect extends DataEntity<AnnyCollect> {
	
	private static final long serialVersionUID = 1L;
	private String ascriptionId;		// 归属ID（例如店铺ID或商品ID）
	private String type;		// 类别(标识商品还是店铺)
	private User user;		// 用户ID
	private String vdef1;		// 预留字段1
	private String vdef2;		// 预留字段2
	private String vdef3;		// 预留字段3
	private String vdef4;		// 预留字段4
	private String vdef5;		// 预留字段5
	private String vdef6;		// 预留字段6
	private String vdef7;		// 预留字段7
	private String vdef8;		// 预留字段8
	private String vdef9;		// 预留字段9
	private String vdef10;		// 预留字段10
	
	public AnnyCollect() {
		super();
	}

	public AnnyCollect(String id){
		super(id);
	}

	@ExcelField(title="归属ID（例如店铺ID或商品ID）", align=2, sort=1)
	public String getAscriptionId() {
		return ascriptionId;
	}

	public void setAscriptionId(String ascriptionId) {
		this.ascriptionId = ascriptionId;
	}
	
	@ExcelField(title="类别(标识商品还是店铺)", align=2, sort=2)
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@NotNull(message="用户ID不能为空")
	@ExcelField(title="用户ID", fieldType=User.class, value="user.name", align=2, sort=3)
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@ExcelField(title="预留字段1", align=2, sort=10)
	public String getVdef1() {
		return vdef1;
	}

	public void setVdef1(String vdef1) {
		this.vdef1 = vdef1;
	}
	
	@ExcelField(title="预留字段2", align=2, sort=11)
	public String getVdef2() {
		return vdef2;
	}

	public void setVdef2(String vdef2) {
		this.vdef2 = vdef2;
	}
	
	@ExcelField(title="预留字段3", align=2, sort=12)
	public String getVdef3() {
		return vdef3;
	}

	public void setVdef3(String vdef3) {
		this.vdef3 = vdef3;
	}
	
	@ExcelField(title="预留字段4", align=2, sort=13)
	public String getVdef4() {
		return vdef4;
	}

	public void setVdef4(String vdef4) {
		this.vdef4 = vdef4;
	}
	
	@ExcelField(title="预留字段5", align=2, sort=14)
	public String getVdef5() {
		return vdef5;
	}

	public void setVdef5(String vdef5) {
		this.vdef5 = vdef5;
	}
	
	@ExcelField(title="预留字段6", align=2, sort=15)
	public String getVdef6() {
		return vdef6;
	}

	public void setVdef6(String vdef6) {
		this.vdef6 = vdef6;
	}
	
	@ExcelField(title="预留字段7", align=2, sort=16)
	public String getVdef7() {
		return vdef7;
	}

	public void setVdef7(String vdef7) {
		this.vdef7 = vdef7;
	}
	
	@ExcelField(title="预留字段8", align=2, sort=17)
	public String getVdef8() {
		return vdef8;
	}

	public void setVdef8(String vdef8) {
		this.vdef8 = vdef8;
	}
	
	@ExcelField(title="预留字段9", align=2, sort=18)
	public String getVdef9() {
		return vdef9;
	}

	public void setVdef9(String vdef9) {
		this.vdef9 = vdef9;
	}
	
	@ExcelField(title="预留字段10", align=2, sort=19)
	public String getVdef10() {
		return vdef10;
	}

	public void setVdef10(String vdef10) {
		this.vdef10 = vdef10;
	}
	
}